<?php

defined('IN') or die('bad request');

class coreController {

    function __construct() {
        // load model functions
        $model_function_file = AROOT . 'model' . DS . G(C('VAR_MODULE')) . '.model.php';
        if (file_exists($model_function_file))
            require_once( $model_function_file );
        else {
            $cmodel = CROOT . 'model' . DS . G(C('VAR_ACTION')) . '.model.php';
            if (file_exists($cmodel))
                require_once( $cmodel );
        }
    }

    function index() {
        // 
    }

}
